package com.lmk.system.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.lmk.basic.domain.BaseDomain;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 实体类：
 */
@Data
public class Menu extends BaseDomain{

    private String name;
    private String component;
    private String url;
    private String icon;
    private Integer index;
    private Long parentId;
    private String intro;
    private Boolean state;

    //父级菜单
    private List<String> parentName;

    //加上注解，没有下级就不再继续显示
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    public List<Menu> children = new ArrayList<>();




}
